package com.chenxi.vhr.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chenxi.vhr.bean.VhrPosition;
import com.chenxi.vhr.bean.common.Result;
import com.chenxi.vhr.mapper.VhrPositionMapper;
import com.chenxi.vhr.service.VhrPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class VhrPositionServiceImpl extends ServiceImpl<VhrPositionMapper, VhrPosition>
    implements VhrPositionService{

    @Autowired
    VhrPositionMapper positionMapper;

    @Override
    public Result deleteBatchByIdList(List<Integer> idList) {
        Integer count = positionMapper.deleteBatchByIdList(idList);
        return count > 0 ? Result.ok("职位批量删除成功") : Result.error("职位批量删除失败");
    }

}




